
-- Debugger ---
local Debugger = {}
Debugger.ClassName = "Debugger"
Debugger.developMode = true;


Debugger.IsStudio = true;
Debugger.IsClient = true;
Debugger.IsServer = false;

function Debugger.Assert(value, msg)
	if not Debugger.IsStudio then
		return
	end
	if value then
		return
	end
	error("Assertion failed: "..tostring(msg));
end

function Debugger.AssertEqual(value, expected, msg)
	Debugger.Assert(value == expected, msg)
end

function Debugger.PrintStack()
	warn(debug.traceback());
end

return Debugger;